import request from '@/utils/requestDianjian.js'
export const getEquipList = (params) => {
  return request({
    url: '/system/part/list',
    method: 'GET',
    params
  })
}
export const updatePart = (data) => {
  //更新配件信息
  return request({
    url: '/system/part',
    method: 'PUT',
    data
  })
}
export const deletePart = (params) => {
  //更新配件信息
  return request({
    url: '/system/part/',
    method: 'DELETE',
    params
  })
}
export const addPart = (data) => {
  //增加配件
  return request({
    url: '/system/part',
    method: 'POST',
    data
  })
}
export const exportPart = (data) => {
  //导出配件列表
  return request({
    url: '/system/part/export',
    method: 'POST',
    data
  })
}
export const addContent = (params) => {
  //增加点检列表
  return request({
    url: '/ybx/content/list',
    method: 'GET',
    params
  })
}
export const addDianjian = (data) => {
  //增加点检列表
  return request({
    url: '/ybx/content',
    method: 'POST',
    data
  })
}
export const getDjDept = (data) => {
  //增加点检列表
  return request({
    url: '/system/dept/getAllDept',
    method: 'GET',
    data
  })
}
